<template>
  <div id="app">
    <!-- <scale-box :width="2360" :height="1080" bgc="transparent" :delay="100"> -->
      <router-view />
      <theme-picker />
    <!-- </scale-box> -->
  </div>
</template>

<script>
import ThemePicker from "@/components/ThemePicker";
// import autofit from 'autofit.js';
// import ScaleBox from "vue2-scale-box";
// import devPixelRatio from "@/utils/devicePixelRatio.js";

export default {
  name: "App",
  components: { ThemePicker },
  // created() {
  //   new devPixelRatio().init(); // 初始化页面比例
  // },
  metaInfo() {
    return {
      title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
      titleTemplate: title => {
        return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
      }
    }
  },

  mounted() {
        // autofit.init({
        //     dh: 1080,
        //     dw: 1920,
        //     el: "#app",
        //     resize: true
        // });
    }
};
</script>
<style scoped>
#app .theme-picker {
  display: none;
}
</style>
